﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.EntityModel;
using YasharEl.Infrastructure.Core.Personification;

namespace YasharEl.Infrastructure.OrgUnit.EntityModel
{
    public class EmployeeEntity : ReadOnlyEntity, IEmployee
    {
        #region AbstractEntity<long> Overrides

        public override long Id
        {
            get
            {
                return EmployeeId;
            }
            protected set
            {
                EmployeeId = value;
            }
        }

        #endregion

        #region IEmployee Implementations

        public virtual long EmployeeId
        {
            get;
            private set;
        }

        public virtual IsraelIdentityNumber IdentityNumber
        {
            get;
            private set;
        }

        public virtual long EmployeeNumber
        {
            get;
            private set;
        }

        public virtual Name EnglishName
        {
            get;
            private set;
        }

        public virtual Name HebrewName
        {
            get;
            private set;
        }

        public virtual DateTime BirthDate
        {
            get;
            private set;
        }

        public virtual Occupation CurrentOccupation
        {
            get;
            private set;
        }

        public virtual DateTime HiredFrom
        {
            get;
            private set;
        }

        public virtual DateTime? HiredUntil
        {
            get;
            private set;
        }

        public virtual IManager DirectManager
        {
            get;
            private set;
        }

        public virtual IOrganizationalUnit BelongsToUnit
        {
            get;
            private set;
        }

        public virtual string Username
        {
            get;
            private set;
        }

        public virtual Gender Gender
        {
            get;
            private set;
        }

        public virtual Job JobPosition
        {
            get;
            private set;
        }

        #endregion
    }
}
